﻿using SD.Infrastructure.EntityBase;
using System;

namespace SlamDunk.MES.Domain.Entities.ExecutionContext
{
    /// <summary>
    /// 工单人员要求
    /// </summary>
    public class WorkOrderPersonAsk : PlainEntity
    {
        #region # 构造器

        #region 00.无参构造器
        /// <summary>
        /// 无参构造器
        /// </summary>
        protected WorkOrderPersonAsk() { }
        #endregion

        #region 01.创建工单人员要求构造器
        /// <summary>
        /// 创建工单人员要求构造器
        /// </summary>
        /// <param name="personClassId">人员类Id</param>
        /// <param name="personId">人员Id</param>
        /// <param name="personUse">人员用途</param>
        /// <param name="quantity">数量</param>
        /// <param name="facilityId">工厂模型Id</param>
        /// <param name="sort">排序</param>
        /// <param name="description">描述</param>
        public WorkOrderPersonAsk(Guid? personClassId, Guid? personId, string personUse, decimal? quantity, Guid? facilityId, int sort, string description)
            : this()
        {
            this.PersonClassId = personClassId;
            this.PersonId = personId;
            this.PersonUse = personUse;
            this.Quantity = quantity;
            this.FacilityId = facilityId;
            this.Sort = sort;
            this.Description = description;
        }
        #endregion

        #endregion

        #region # 属性

        #region 人员类Id —— Guid? PersonClassId
        /// <summary>
        /// 人员类Id
        /// </summary>
        public Guid? PersonClassId { get; private set; }
        #endregion

        #region 人员Id —— Guid? PersonId
        /// <summary>
        /// 人员Id
        /// </summary>
        public Guid? PersonId { get; private set; }
        #endregion

        #region 人员用途 —— string PersonUse
        /// <summary>
        /// 人员用途
        /// </summary>
        public string PersonUse { get; private set; }
        #endregion

        #region 数量 —— decimal? Quantity
        /// <summary>
        /// 数量
        /// </summary>
        public decimal? Quantity { get; private set; }
        #endregion

        #region 工厂模型Id —— Guid? FacilityId 
        /// <summary>
        /// 工厂模型Id
        /// </summary>
        public Guid? FacilityId { get; private set; }
        #endregion

        #region 排序 —— int Sort
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; private set; }
        #endregion

        #region 描述 —— string Description
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; private set; }
        #endregion

        #region 导航属性 - 工单 —— WorkOrder WorkOrder
        /// <summary>
        /// 导航属性 - 工单
        /// </summary>
        public virtual WorkOrder WorkOrder { get; internal set; }
        #endregion

        #endregion
    }
}
